package com.xuecheng.content.controller;

import com.xuecheng.content.entity.TbUser;
import com.xuecheng.content.service.TbUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author itcast
 */
@Slf4j
@RestController
@SuppressWarnings("all")
@RequestMapping("tbUser")
public class TbUserController implements com.xuecheng.content.api.TbUserControllerApi {

    @Autowired
    private TbUserService tbUserService;

    @Override
    @GetMapping(value = "queryUsers",name = "所有mybatisPlus查询所有用户信息")
    public List<TbUser> queryUsers(){
        return tbUserService.queryUsers();
    }
}
